package com.tubi.Scnner;

import java.util.Scanner;

public class Demo1Scanner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入");

        //快速生成方法返回值 option + com +V
        String s = sc.nextLine(); //输入字符串
        int i = sc.nextInt(); //输入数字
        String next = sc.next(); //接受字符串 遇到空格就不再接受数据
        System.out.println(s);
        System.out.println(i);
    }
}
